home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>2</cardCount>
- <cardID>3061</cardID>
- <listID>2183</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>480</width>
- <height>294</height>
- </cardSize>
- <script>on openStack
- repeat with i = 1 to the number of fields
- put empty into field i of card 1
- end repeat
- pass openStack
- end openStack
-
-
- on appleEvent class, eventID, sender
- if class & eventID is "WWWΩsdoc" then -- look for sdoc event
- request appleEvent data -- get the direct parameter (path args)
- put it into field "path args"
- request appleEvent data with keyword "kfor"
- put it into field "search args"
- request appleEvent data with keyword "post"
- put it into field "post args"
- request appleEvent data with keyword "meth"
- put it into field "method"
- request appleEvent data with keyword "addr"
- put it into field "address"
- request appleEvent data with keyword "user"
- put it into field "username"
- request appleEvent data with keyword "pass"
- put it into field "password"
-
- -- You can duplicate the above code, substituting the addition
- -- keywords below to access additional MacHTTP parameters:
- --'kfor' - search arguments
- --'user' - user name
- --'pass' - password
- --'frmu' - from user
- --'addr' - client address
- --'post' - post arguments
- --'meth' - HTTP method
- --'svnm' - server name
- --'svpt' - server port
- --'scnm' - script name
- --'ctyp' - content type
- --'refr' - referer
- --'Agnt' - user agent
-
- -- Do whatever processing is necessary here to handle the event,
- -- using the arguments provided above. Return the result of the processing
- -- as a string with the "reply" statement as below.
- --
-
- reply "<title>HyperCard Result</title><h1>HyperCard thanks you!</h1>"
- else
- pass appleEvent
- end if
- end appleEvent</script>
- <background id="2644" file="background_2644.xml" name="" />
- <card id="3061" file="card_3061.xml" marked="false" name="" owner="2644" />
- <card id="3946" file="card_3946.xml" marked="false" name="info" owner="2644" />
- </stack>
-